<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:h="http://java.sun.com/jsf/html"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:p="http://primefaces.org/ui"
                template="./template.xhtml">

    <ui:define name="title">
        FileUpload - <span class="subitem">Basic</span>
    </ui:define>

    <ui:define name="description">
        Simple uploader uses native browser file upload. Simple uploader is disabled at online demo.
    </ui:define>

    <ui:param name="documentationLink" value="/components/fileupload" />

    <ui:define name="implementation">

        <p:growl id="messages" showDetail="true" />

        Single file<br />
        <h:form enctype="multipart/form-data">        
            <p:fileUpload value="#{fileUploadView.file}" mode="simple" skinSimple="true"/>
            <br />
            <p:commandButton value="Submit" ajax="false" action="#{fileUploadView.upload}" disabled="true" />
        </h:form>
        
        <br />
        <br />
        Multiple files; NOTE: in simple mode, you can get all files withing a single request!<br />
        <h:form enctype="multipart/form-data">
            <p:fileUpload value="#{fileUploadView.files}" mode="simple" skinSimple="true" multiple="true" />
            <br />
            <p:commandButton value="Submit" ajax="false" action="#{fileUploadView.uploadMultiple}" disabled="true" />
        </h:form>
       
    </ui:define>

</ui:composition>
